package com.kedacom.demo.spring.websocket.client;

import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;

import com.kedacom.demo.spring.websocket.WebSocketClient;

public class MyWebSocketClient extends WebSocketClient {

	public MyWebSocketClient() {
		super();
	}

	public MyWebSocketClient(String url) {
		super(url);
	}

	@Override
	protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception {
		// TODO: 处理收到消息后的业务逻辑
		String text = message.getPayload();
	}

}
